from .views import *
from django.urls import path
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('users',UserInfoViewSet)
router.register('userimage',UserImageView)

urlpatterns = [
    # 发送短信
    path('sms_code/', SmsAPIView.as_view()),
    # 登录
    path('logincount/', LoginCountAPIView.as_view()),
    # 统计总人数
    path('total_count/', CountUserAPIView.as_view()),
    # 统计日增用户
    path('day_increment/', DayIncrementAPIView.as_view()),
    # 统计日活用户
    path('day_live/', DayLiveAPIView.as_view()),
    # 上传用户头像
    path('up_avatar/', UploadImageView.as_view())
]

urlpatterns += router.urls